package com.atguigu02.memory;

/**
 * ClassName: Person
 * Package: com.atguigu02.memory
 * Description:
 *
 * @Author xiao_qi
 * @Create 2024/3/16 21:30
 * @Version 1.0
 */
public class Person {

    String name;
    int age;
    String gender;

    public void eat(){
        System.out.println("人吃饭");

    }
    public void sleep(int hour){
        System.out.println("人一天至少要睡觉："+hour+"小时");
    }
    public void interests(String hobby){
        System.out.println("我的爱好是：" + hobby);
    }
}
